package com.sjzsqjy.asdtiang.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TraceResult entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trace_result", catalog = "hospital")
public class TraceResult implements java.io.Serializable {

	// Fields

	private String id;
	private Long version;
	private String result;
	private String userId;
	private String typeId;

	// Constructors

	/** default constructor */
	public TraceResult() {
	}

	/** full constructor */
	public TraceResult(Long version, String result, String userId, String typeId) {
		this.version = version;
		this.result = result;
		this.userId = userId;
		this.typeId = typeId;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "version", nullable = false)
	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	@Column(name = "result", nullable = false)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Column(name = "user_id", nullable = false)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "type_id", nullable = false)
	public String getTypeId() {
		return this.typeId;
	}

	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}

}